import React from "react";
import { useRoutes, BrowserRouter } from "react-router-dom";
import { routes } from "./router";
// import WhileRouter from "./component/Hoc/WhileRouter";
function App() {
  const EL = () => useRoutes(routes);
  return (
    <BrowserRouter>
      {/* <WhileRouter> */}
        <EL />
      {/* </WhileRouter> */}
    </BrowserRouter>
  );
}

export default App;
